﻿namespace _01.SchoolExercise
{
    using System;
    using System.Linq;

    public class Student : People, ICommentable
    {
        private int classNumber;

        public Student(string name, string comment, int classNumber)
            : base(name)
        {
            this.Comment = comment;
            this.ClassNumber = classNumber;
        }

        public string Comment { get; set; }

        public int ClassNumber
        {
            get
            {
                return this.classNumber;
            }

            private set
            {
                // TODO: Implement unique number set
                this.classNumber = value;
            }
        }
    }
}
